package com.command.center.pucms.common.enums;


/**
 * @author zlb
 * @date 2021-04-23
 */
public enum CodeEnum {
    SUCCESS("10000","操作成功"),

    IDENTIFICATION_ERROR("20001","身份异常"),
    // token无效
    TOKEN_INVALID("20002", "token无效"),
    // refreshToken无效
    REFRESH_TOKEN_INVALID("20003", "认证过期,请重新登录"),
    INVALID_USERNAME_PASSWORD("20004","用户名或密码错误"),
    AUTHORIZATION_ERROR("20005","授权异常"),
    INVALID_USER("20006","用户不存在");

    private String respCode;
    private String respMsg;


    CodeEnum(String respCode, String respMsg){
        this.respCode = respCode;
        this.respMsg=respMsg;
    }

    public String getCode() {
        return respCode;
    }
    public String getMsg() {
        return respMsg;
    }

    @Override
    public String toString() {
        return "ResultEnums{" +
                "respCode=" + respCode +
                ", respMsg='" + respMsg + '\'' +
                '}';
    }
}

